<?php
// +----------------------------------------------------------------------
// | 星数 [ xsframe赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2020~2023 https://www.xsframe.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed 星数PHP并不是自由软件，未经许可不能去掉xsframe相关版权
// +----------------------------------------------------------------------
// | Author: GuiHai <786824455@qq.com>
// +----------------------------------------------------------------------

$menu = [
    'goods' => [
        'title'    => '商品',
        'subtitle' => '商品管理',
        'icon'     => 'icon-shopping-cart',
        'perm'     => true,
        'items'    => [
            [
                'title' => '上架中',
                'route' => 'index/main',
            ],
            [
                'title' => '已下架',
                'route' => 'index/out',
            ],
            [
                'title' => '回收站',
                'route' => 'index/cycle',
            ],
            [
                'title' => '商品分类',
                'route' => 'category/main',
            ],
        ]
    ],

    'order' => [
        'title'    => '订单',
        'subtitle' => '订单管理',
        'icon'     => 'icon-reorder',
        'perm'     => true,
        'items'    => [
            [
                'title' => '订单概述',
                'route' => 'index/index',
            ],

            [
                'title' => '订单列表',
                'route' => 'index',
                'items' => [
                    [
                        'title' => '待付款',
                        'route' => 'status0',
                    ],
                    [
                        'title' => '已付款',
                        'route' => 'status1',
                    ],
                    [
                        'title' => '待结算',
                        'route' => 'status2',
                    ],
                    [
                        'title' => '已结算',
                        'route' => 'status3',
                    ],
                    [
                        'title' => '已关闭',
                        'route' => 'status_1',
                    ],
                    [
                        'title' => '全部订单',
                        'route' => 'main',
                    ],
                ]
            ],

            [
                'title' => '维权',
                'route' => 'index',
                'items' => [
                    [
                        'title' => '维权申请',
                        'route' => 'status4',
                    ],
                    [
                        'title' => '维权完成',
                        'route' => 'status5',
                    ]
                ]
            ],

        ]
    ],

    'article' => [
        'title'    => '文章',
        'subtitle' => '文章管理',
        'icon'     => 'icon-file-text-alt',
        'items'    => [
            [
                'title' => '文章列表',
                'route' => 'index/main',
                'perm'  => [
                    'main'   => '查看列表',
                    'view'   => '查看内容',
                    'add'    => '添加-log',
                    'edit'   => '修改-log',
                    'delete' => '删除-log',
                    'xxx'    => [
                        'status' => 'edit'
                    ],
                ],
            ],
            [
                'title' => '文章分类',
                'route' => 'category/main',
                'perm'  => [
                    'main'   => '查看列表',
                    'edit'   => '修改-log',
                    'delete' => '删除-log',
                ],
            ],
        ]
    ],

    'member' => [
        'title'    => '用户',
        'subtitle' => '用户管理',
        'icon'     => 'icon-group',
        'items'    => [
            [
                'title' => '用户管理',
                'route' => 'main',
                'perm'  => true,
            ],
        ]
    ],

    'sets' => [
        'title'    => '设置',
        'subtitle' => '设置管理',
        'icon'     => 'icon-cog',
        'items'    => [
            [
                'title' => '访问入口',
                'route' => 'cover',
            ],
            [
                'title' => '应用设置',
                'route' => 'module',
            ],
        ]
    ],
];
return $menu;